package com.service.Impl;

import java.util.List;

import com.dao.SysRoleMenuMapper;
import com.entity.SysRoleMenu;
import com.service.SysRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lanouhn
 */
@Service
public class SysRoleMenuServiceImpl implements SysRoleMenuService {
    @Autowired
    private SysRoleMenuMapper sysRoleMenuMapper;

    @Override
    public long getSysRoleMenuRowCount() {
        return sysRoleMenuMapper.getSysRoleMenuRowCount();
    }

    @Override
    public List<SysRoleMenu> selectSysRoleMenu() {
        return sysRoleMenuMapper.selectSysRoleMenu();
    }

    @Override
    public List<SysRoleMenu> selectSysRoleMenuByIdList(Integer id) {
        return sysRoleMenuMapper.selectSysRoleMenuByIdList(id);
    }

    @Override
    public SysRoleMenu selectSysRoleMenuByObj(SysRoleMenu obj) {
        return sysRoleMenuMapper.selectSysRoleMenuByObj(obj);
    }

    @Override
    public SysRoleMenu selectSysRoleMenuById(Integer id) {
        return sysRoleMenuMapper.selectSysRoleMenuById(id);
    }

    @Override
    public int insertSysRoleMenu(SysRoleMenu value) {
        return sysRoleMenuMapper.insertSysRoleMenu(value);
    }

    @Override
    public int insertNonEmptySysRoleMenu(SysRoleMenu value) {
        return sysRoleMenuMapper.insertNonEmptySysRoleMenu(value);
    }

    @Override
    public int insertSysRoleMenuByBatch(List<SysRoleMenu> value) {
        return sysRoleMenuMapper.insertSysRoleMenuByBatch(value);
    }

    @Override
    public int deleteSysRoleMenuById(Integer id) {
        return sysRoleMenuMapper.deleteSysRoleMenuById(id);
    }

    @Override
    public int deleteSysRoleMenuByRoleId(Integer roleId) {
        return sysRoleMenuMapper.deleteSysRoleMenuByRoleId(roleId);
    }

    @Override
    public int updateSysRoleMenuById(SysRoleMenu enti) {
        return sysRoleMenuMapper.updateSysRoleMenuById(enti);
    }

    @Override
    public int updateNonEmptySysRoleMenuById(SysRoleMenu enti) {
        return sysRoleMenuMapper.updateNonEmptySysRoleMenuById(enti);
    }

    public SysRoleMenuMapper getSysRoleMenuMapper() {
        return this.sysRoleMenuMapper;
    }

    public void setSysRoleMenuMapper(SysRoleMenuMapper sysRoleMenuMapper) {
        this.sysRoleMenuMapper = sysRoleMenuMapper;
    }

}